package com.jprocms.module.cms.dal.mysql.channel;

import com.jpro.framework.mybatis.core.mapper.BaseMapperX;
import com.jprocms.module.cms.dal.dataobject.channel.ChannelAttrDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 栏目自定义字段 Mapper
 *
 * @author jprocms
 */
@Mapper
public interface ChannelAttrMapper extends BaseMapperX<ChannelAttrDO> {

//    default List<ChannelAttrDO> selectListByChannelId(Long id) {
//        return selectList(new LambdaQueryWrapperX<ChannelAttrDO>()
//                .eqIfPresent(ChannelAttrDO::getChannelId, id));
//    }

    List<ChannelAttrDO> selectListByChannelId(@Param("channelId") Long channelId);

}
